package sh.wn36.vehiclemanage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import sh.wn36.vehiclemanage.entity.DrivingRecord;
import sh.wn36.vehiclemanage.mapper.DrivingRecordMapper;
import sh.wn36.vehiclemanage.service.DrivingRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import sh.wn36.vehiclemanage.vo.driverRecordInfo;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Service
public class DrivingRecordServiceImpl extends ServiceImpl<DrivingRecordMapper, DrivingRecord> implements DrivingRecordService {

    @Autowired
    private DrivingRecordMapper drivingRecordMapper;


    @Override
    public IPage<driverRecordInfo> getAll1(Page<driverRecordInfo> page, QueryWrapper<driverRecordInfo> wrapper) {
        return drivingRecordMapper.getAll1(page,wrapper);
    }

    @Override
    public IPage<driverRecordInfo> getAll2(Page<driverRecordInfo> page, QueryWrapper<driverRecordInfo> wrapper) {
        return drivingRecordMapper.getAll2(page,wrapper);
    }
}
